package com.hrm.model.serviceimple;

import java.util.List;

import com.hrm.model.dao.FamilyDAO;
import com.hrm.model.dto.insa.FamilyDTO;
import com.hrm.model.service.FamilyService;

public class FamilyServiceImple implements FamilyService{
		
	private FamilyDAO familyDAO;

	public void setFamilyDAO(FamilyDAO familyDAO) {
		this.familyDAO = familyDAO;
	}

	@Override
	public List<FamilyDTO> getFamily(FamilyDTO dto) {
		return familyDAO.getFamily(dto);
	}

	@Override
	public void updateFamily(FamilyDTO command) {
		familyDAO.updateFamily(command);
	}

	@Override
	public void insertFamily(FamilyDTO command) {
		familyDAO.insertFamily(command);
	}

	@Override
	public void deleteFamily(FamilyDTO command) {
		familyDAO.deleteFamily(command);
	}	

}
